﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMaster.master" AutoEventWireup="true" CodeBehind="ServiceAgreement.aspx.cs" Inherits="doris.Admin.ServiceAgreement" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h2>Tjenesteavtaler</h2>
<asp:Panel runat="server">
    <asp:DropDownList ID="ddService" runat="server" DataSourceID="SqlServices" 
        DataTextField="Service" DataValueField="SerivceID">
    </asp:DropDownList>
    <asp:DropDownList ID="ddCompany" runat="server" DataSourceID="SqlCompanies" 
        DataTextField="Name" DataValueField="CompanyID">
    </asp:DropDownList>
    <asp:DropDownList ID="ddConfigMail" runat="server" 
        DataSourceID="SqlConfigMail" DataTextField="ConnectionName" 
        DataValueField="ConfigurationMailID">
    </asp:DropDownList><br />
    <asp:Button ID="bAction" runat="server" Text="Lagre" 
    onclick="bAction_Click" />
</asp:Panel>
    <asp:SqlDataSource ID="SqlServices" runat="server" 
        ConnectionString="<%$ ConnectionStrings:localConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:localConnectionString.ProviderName %>" 
        SelectCommand="getAllServices" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlCompanies" runat="server" 
        ConnectionString="<%$ ConnectionStrings:localConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:localConnectionString.ProviderName %>" 
        SelectCommand="getAllCompanies" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlConfigMail" runat="server" 
        ConnectionString="<%$ ConnectionStrings:localConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:localConnectionString.ProviderName %>" 
        SelectCommand="getAllPop3" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
</asp:Content>
